﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using FBApp.Classes;

namespace FBApp
{
	public class MessageItem
	{
        public string id { get; set; }
        public string from { get; set; }
        public string fromID { get; set; }
        public string to { get; set; }
        public string subject { get; set; }
        public string message { get; set; }
        public string updated_time { get; set; }

        public ImageSource fromAvatar { get; set; }

		public MessageItem(string id,string from,string fromID,string to,string subject,string message,string updated_time)
		{
            this.id = id;
            this.from = from;
            this.fromID = fromID;
            this.to = to;
            this.subject = subject;
            this.message = message;
            this.updated_time = updated_time;

            fromAvatar = SharedFunctions.loadImage(fromID);
		}
	}
}